package com.hanamaki.oop.demo12;

public class KeCar implements Car {
    int a;
    int dayMoney;

    public KeCar(int a) {
        this.a = a;
        if (a > 16) {
            this.dayMoney = 1500;
        } else if (a <= 16) {
            this.dayMoney = 800;
        }
    }

    @Override
    public double price(int days) {
        return days * this.dayMoney;
    }
}
